import request from '@/utils/request'

// 查询绩效格列表
export function listTable(query) {
  return request({
    url: '/business/jxPerformance/list',
    method: 'get',
    params: query
  })
}

// 查询绩效格详细
export function getTable(id) {
  return request({
    url: '/business/jxPerformance/' + id,
    method: 'get'
  })
}

// 新增绩效格
export function addTable(data) {
  return request({
    url: '/business/jxPerformance',
    method: 'post',
    data: data
  })
}

// 修改绩效格
export function updateTable(data) {
  return request({
    url: '/business/jxPerformance',
    method: 'put',
    data: data
  })
}

// 删除绩效格
export function delTable(id) {
  return request({
    url: '/business/jxPerformance/' + id,
    method: 'delete'
  })
}
// 绩效统计列表
export function getPerformanceStatisticsList(params) {
  return request({
    url: '/business/jxPerformanceEmployee/getPerformanceStatisticsList',
    method: 'get',
    params
  })
}
